package io.shallwe.task;


import com.jfinal.aop.Aop;
import com.jfinal.kit.LogKit;
import io.shallwe._admin.line.LocationService;

import java.util.concurrent.TimeUnit;

/***
 *
 */
public class LineInfoUpdateRunnable implements  Runnable {

    LocationService service= Aop.get(LocationService.class);
    @Override
    public void run() {
        while (true){
            try {
                service.doUpdateLineInfo();
                Thread.sleep(1000);
            }catch (Exception e){
                LogKit.warn(e.getMessage());
            }
        }
    }
}
